<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="/css/frame.css"/>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-2.1.1.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/plugin/jquery/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/plugin/layer-v1.9.2/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/common/common.js"></script>
<body>
<div class="l_err" style="wid 100%; margin-top: 2px;"></div>

<#--<input id="dataUrl" value="${dataUrl}" type="hidden"/>-->

        <div class="form-layer-group clearfix">
            <input  type="hidden" id="params" value="${sysMessage.params!""}"/>
            <input name="propId" type="hidden" id="propId" value=""/>

            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">消息标题：</label>
                <input type="text" id="infotitle" disabled class="input-medium form-control m-b" value="${sysMessage.infotitle!""}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">消息内容：</label>
                <textarea rows="3" cols="180" style="width:296px;" disabled
                          class="form-control m-b">${sysMessage.infocontent!""}</textarea>
            </div>

            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">发送人：</label>
                <input type="text" disabled class="input-medium form-control m-b" value="${sysMessage.sendPeopleName!""}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">发送消息时间：</label>
                <input type="text" disabled class="input-medium form-control m-b"
                       value="${sysMessage.time?string('yyyy-MM-dd hh:mm:ss')}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">收消息人：</label>
                <input type="text" disabled class="input-medium form-control m-b" value="${personName!""}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">消息类型：</label>
                <input type="text" disabled class="input-medium form-control m-b" value="${sysMessage.msgTypeName!""}"/>
            </div>
            <div class="form-group-div form-layer-input clearfix">
                <label class="control-label">处理状态：</label>
                <#if sysMessage.sysMsgHandle??>
                    <#if sysMessage.sysMsgHandle.state>

                <input type="text" disabled class="input-medium form-control m-b" value="已处理"/>
                    <#else >
                <input type="text" disabled class="input-medium form-control m-b" value="未处理"/>
                    </#if>
                <#else >
                <input type="text" disabled class="input-medium form-control m-b" value="未处理"/>
                </#if>
            </div>


            <footer class="panel-footer text-right bg-light lter">
                <button type="button" id="checkButton" class="btn btn-main">前去处理</button>
            </footer>
        </div>

</body>
<script type="text/javascript" >

    $(function () {

        $("#checkButton").click(function () {
            var params=$("#params").val();
            var infotitle=encodeURI($("#infotitle").val());
          // var projectIds=  params.split("*")[0];
          var taskIds=  params.split("*")[1];
          var taskId=taskIds.split("#");
           top.window.location="/homepage/messageJumpUI?infotitle="+infotitle+
                   "&taskId="+taskId[1];
        });
    });
</script>
</html>
